#include"app_message.h"
#include"stdio.h"
#include"log.h"
#include"app_common.h"
int main(int argc, char *argv[])
{
    char bytes[9]={0x01,0x02,0x04,0x58,0x58,0x61,0x62,0x63,0x064};
    //字符数组转json字符串
    char *json=  app_message_bytes_to_json(bytes,9);
    log_info("json = %s",json);
    
    char buff[100];
    //json字符串转字符数组
   int len=  app_message_json_to_bytes(json,buff,100);
   
   app_common_print_hex(buff,len);

   return 0;
}